namespace Medianamik.UI.Controls
{
    public class TreeItem : ITreeItem
    {
        public TreeItem(string pText, string pValue, string pNavigateUrl, string pImageUrl, bool pHasChildren)
        {
            Text = pText;
            Value = pValue;
            NavigateUrl = pNavigateUrl;
            HasChildren = pHasChildren;
            ImageUrl = pImageUrl;

        }
        public TreeItem(string pText, string pValue, string pNavigateUrl, string pImageUrl, bool pHasChildren, bool pEnabled)
            : this(pText, pValue, pNavigateUrl,pImageUrl, pHasChildren)
        {
            Enabled = pEnabled;
        }
        public TreeItem(string pText, string pValue, string pNavigateUrl, string pImageUrl, bool pHasChildren, bool pEnabled, int pDepth, bool uiEnabled)
            : this(pText, pValue, pNavigateUrl,pImageUrl, pHasChildren)
        {
            Depth = pDepth;
            Enabled = pEnabled;
            UIEnabled = uiEnabled;
        }

        #region ITreeItem Members

        public string Text
        {
            get;
            private set;
        }

        public string Value
        {
            get;
            private set;
        }

        public string NavigateUrl
        {
            get;
            private set;
        }

        public string ImageUrl
        {
            get; private set;
        }

        public bool? HasChildren
        {
            get;
            private set;
        }

        public int? Depth
        {
            get;
            private set;
        }

        public bool? Enabled
        {
            get;
            private set;
        }

        public bool? UIEnabled
        {
            get;
            private set;
        }

        #endregion
    }
}